
import Vue from 'vue'
import App from './App'
import router from './router'

// 用于和后台交互，发送请求
import axios from 'axios';
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
Vue.prototype.$axios = axios;

// 设置全局变量
import global_ from './Base.vue'
Vue.prototype.GLOBAL = global_;
axios.defaults.baseURL = global_.BASE_URL;

Vue.config.productionTip = false

// 创建根实例
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
